package com.qfedu.ioc;

import com.qfedu.ioc.framework.InjectionContext;

public class Test {
    @org.junit.Test
    public void case1(){
        Leader leader = InjectionContext.getBean(Leader.class);
        leader.drink();
    }



    @org.junit.Test
    public void case2() {
        Teacher teacher = InjectionContext.getBean(Teacher.class);
        teacher.drink();
    }
    InjectionContext injectionContext=new InjectionContext("com.qfedu.ioc");
    @org.junit.Test
    public void case3() {
        Leader leader = InjectionContext.getBean(Leader.class);
        System.out.println(leader);
    }
}
